<?php
class CityAction extends LoginAction
{
    public function index ()
    {
        
    }
    public function get ()
    {
        $ProvinceModel = M('City');
        $provinceid = getGetOrPost('provinceid');
        $map = array();
        if($provinceid){
            $map['provinceid'] = $provinceid;
        }
        $data = $ProvinceModel->where($map)->field('code,name,provinceid')->select();
        $this->ajaxReturn($data, null, 1);
    }
}
?>